package day06;

public class MethodDemo {
    public static void main(String[] args) {
        Method m = new Method();
        m.add("ss",18);
        int[] a = {1,2,3,4};
        int[] b = new int[5];
        System.arraycopy(a,0,b,0,3);
        for (int j : b) {
            System.out.println(j);
        }
        String name = "YiYi";
        hi(name,"今天吃了吗");
        hi(name);
        hi("zhangsan","1");

    }

    public static void hi(String name){
        System.out.println("你好呀!"+name);
    }
    public static void hi(String name,String question){
        if (name=="zhangsan"){
            return;
        }
        System.out.println("你好呀!"+name+"，你"+question+"?");
    }

}

